<?php

class m110713_114903_customer_update extends CDbMigration
{
	public function safeUp()
	{
		$this->addColumn('dycrm_customer', 'consultant', 'string');
		$this->addColumn('dycrm_customer', 'otherName', 'string');
		$this->addColumn('dycrm_customer', 'valueStar', 'integer');
		
		$this->addColumn('dycrm_customer', 'note', 'text');
	}

	public function safeDown()
	{
		$this->dropColumn('dycrm_customer', 'consultant');
		$this->dropColumn('dycrm_customer', 'otherName');
		$this->dropColumn('dycrm_customer', 'valueStar');
		
		$this->dropColumn('dycrm_customer', 'note');
	}
}